package day03.homework.standard;

public class ZiFuOper5 {
    public static void main(String[] args) {
        System.out.println("1.声明整型变量age和字符串型变量name，输出字符串连接的结果");
        int age = 12;
        String name = "小米";
        System.out.println(age);// 12
        System.out.println(name);// 小米
        System.out.println(age+name);// 12小米----String

        System.out.println("2.输出几个数据的拼接，演示字符串连接的同化作用");
        System.out.println(10+20+"10");// 3010----String
        System.out.println(12+"10");// 1210----String
        System.out.println(""+10+20);//1020----String
    }
}
